package dav.mobile.garuda.states.game.objects.encounters;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Vector2;

import dav.mobile.garuda.components.ResourceManager;
import dav.mobile.garuda.components.SoundManager;
import dav.mobile.garuda.states.game.objects.Garuda;

public class Stupa extends Encounter {	
	//Default constructor
	public Stupa(int x, int y, int color, Vector2 force) {
		//Super
		super(x, y, color, force);
		
		//Generate texture based on color
		m_Texture = ResourceManager.m_StupaSprite[color];
	}

	//Don't need to check outer bounds
	@Override
	public boolean DoesAABBOuterHit(Garuda garuda) { return true; }

	//Does not move
	@Override
	public void Update(float deltatime) { }

	@Override
	public void Render(SpriteBatch m_Spritebatch) {
		//Draw
		m_Spritebatch.draw(m_Texture, getPosX(), getPosY());
	}

	@Override
	protected void PlaySound() {
		SoundManager.PlaySFX(SoundManager.m_StupaSound);
	}
}
